<template>

<el-form :inline="true" :model="formInline" class="demo-form-inline">
    <el-form-item label="字典类型名称">
      <el-input v-model="formInline.user" placeholder="请输入字典类型名称" clearable />
    </el-form-item>

        <el-form-item label="备注说明">
      <el-input v-model="formInline.user" placeholder="请输入备注说明" clearable />
    </el-form-item>



    <el-form-item>
      <el-button type="primary" @click="onSubmit">查询</el-button>
    </el-form-item>
  </el-form>


  <el-table :data="tableData" border style="width: 100%">
    <el-table-column prop="name" label="字典类型名称" width="180" />
    <el-table-column prop="desc" label="备注说明" width="180" />
    <el-table-column prop="order" label="排序" width="180" />
    <el-table-column prop="actor" label="编辑者" width="180" />
    <el-table-column prop="time" label="编辑时间" width="180" />

    <el-table-column  label="操作" width="180" >
        <template v-slot="scoped">
            <el-button type="success">查看</el-button>
            <el-button type="info">编辑</el-button>
        </template>
    </el-table-column>
  </el-table>


            <!-- 分页数据 -->
            <el-pagination
            v-model:current-page="currentPage4"
            v-model:page-size="pageSize4"
            :page-sizes="[15, 20, 25, 30]"
            :size="size"
            :disabled="disabled"
            :background="background"
            layout="total, sizes, prev, pager, next, jumper"
            prev-text="上一页" next-text="下一页"
            :total="15"
            />


</template>

<script lang="ts" setup>
const tableData = [
  {
    name: '选择处理人',
    desc: '系统流程模块',
    order: '1',
    actor: 'admin',
    time: '2025-07-10',
  },
  {
    name: '选择处理人',
    desc: '系统流程模块',
    order: '2',
    actor: 'admin',
    time: '2025-07-10',
  },
  {
    name: '选择处理人',
    desc: '系统流程模块',
    order: '3',
    actor: 'admin',
    time: '2025-07-10',
  },
  {
    name: '选择处理人',
    desc: '系统流程模块',
    order: '4',
    actor: 'admin',
    time: '2025-07-10',
  },
]


import { reactive } from 'vue'

const formInline = reactive({
  user: '',
  region: '',
  date: '',
})

const onSubmit = () => {
  console.log('submit!')
}







import { ref } from 'vue'

import type { ComponentSize } from 'element-plus'

const currentPage1 = ref(5)
const currentPage2 = ref(5)
const currentPage3 = ref(5)
const currentPage4 = ref(4)
const pageSize2 = ref(100)
const pageSize3 = ref(100)
const pageSize4 = ref(100)
const size = ref<ComponentSize>('default')
const background = ref(false)
const disabled = ref(false)

const handleSizeChange = (val: number) => {
  console.log(`${val} items per page`)
}
const handleCurrentChange = (val: number) => {
  console.log(`current page: ${val}`)
}













</script>

<style>
.demo-form-inline .el-input {
  --el-input-width: 220px;
}

.demo-form-inline .el-select {
  --el-select-width: 220px;
}
</style>

<style scoped>
.demo-pagination-block + .demo-pagination-block {
  margin-top: 10px;
}
.demo-pagination-block .demonstration {
  margin-bottom: 16px;
}
</style>